var k = 1;

function getWeb(){
    $("#directoryBox").html("");
    $.get(
        "http://localhost/registration_system/main/showActInfoByUser/"+1,
            function(data){
            var arr = new Array();
            arr = JSON.parse(data);
            // console.log(arr);
            var j=0;
            for (var i = 0; i < arr.content.length; i++) {
                $("#directoryBox").append("<a class='contentLi' href='http://localhost/registration_system/main/content/"+ arr.content[i].iActId+"'>" + arr.content[i].vcActName + "</a><br>");
                j++;
                if (j>=10) {break;}
            };
        });
}